package com.bingo.rbac.controller;

import com.bingo.rbac.common.ServerResponse;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * SwaggerDemoTest
 *
 * @author bingo
 * @create 2017-12-03 14:00
 **/
@RestController
@RequestMapping(value = "/userInfo")
@Api(value = "用户信息", description = "用户信息")
public class UserInfoController {
    private Logger logger = LoggerFactory.getLogger(getClass());
    @ResponseBody
    @RequestMapping(value = "/selectAllUsers", method = RequestMethod.GET)
    @ApiOperation(value = "查询所有的人员信息并分页展示", notes = "查询所有的人员信息并分页展示")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page",value = "跳转到的页数", required = true, paramType = "query"),
            @ApiImplicitParam(name = "size",value = "每页展示的记录数", required = true, paramType = "query")
    })
    public ServerResponse selectAllUsers(Integer page, Integer size) {

        return ServerResponse.createServerResponseBySuccess("sueess");
    }

    @ResponseBody
    @RequestMapping(value = "/selectContacts", method = RequestMethod.GET)
    @ApiOperation(value = "查询通讯录人员信息", notes = "查询通讯录人员信息")
    public ServerResponse selectContacts() {
        return ServerResponse.createServerResponseBySuccess("sueess");
    }


}

